﻿Public Class Calculator
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Btn_Sum_Click(sender As Object, e As EventArgs) Handles Btn_Sum.Click
        Dim firstNumber As Integer
        Dim secondNumber As Integer
        Dim result As Integer

        firstNumber = CInt(Tbox_nmbr1.Text)
        secondNumber = CInt(Tbox_nmbr2.Text)

        result = firstNumber + secondNumber

        Lbl_Result.Text = result

    End Sub

    Protected Sub Btn_Reset_Click(sender As Object, e As EventArgs) Handles Btn_Reset.Click
        Tbox_nmbr1.Text = ""
        Tbox_nmbr2.Text = ""
        Lbl_Result.Text = ""

    End Sub
End Class